package com.collect.tanzania.zhiScene.zhiWords;

import android.content.Context;

import com.collect.tanzania.zhiBase.BaseContract;
import com.collect.tanzania.zhiBean.zhiReceive.ZHIRWordsEntity;
import com.collect.tanzania.zhiBean.zhiSend.ZHISWordsUpdateEntity;
import com.collect.tanzania.zhiBean.zhiSend.ZHISendEntity;

import java.util.ArrayList;

public class ZHIWordsContract {
    interface View extends BaseContract.View {
        /**
         * 错误信息返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-14 17:54
         */
        void onGetErrorInfo();

        /**
         * 获取案件列表返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void onGetWordList(ArrayList<ZHIRWordsEntity> zhirWordsEntityArrayList);

        /**
         * 更新话术返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void onUpdateWords();

        /**
         * 更新话术排序列表返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void onUpdateWordsSortList();
    }

    interface Presenter extends BaseContract.Presenter<View> {
        /**
         * 获取案件列表
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void getWordList(Context context, ZHISendEntity zhiSendEntity, boolean showLoading);

        /**
         * 更新话术
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void updateWords(Context context, ZHISWordsUpdateEntity zhisWordsUpdateEntity);

        /**
         * 更新话术排序列表
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void updateWordsSortList(Context context, ZHISWordsUpdateEntity zhisWordsUpdateEntity);
    }
}
